<?php

namespace App\Models;


class Gift extends Base
{

    const TYPE_SM = 1; //sao mu
    const TYPE_FLOWER = 2;


    public static function getTagKey($hero_id) {
        return 'tag:' . Hero::class . ":" . $hero_id;
    }

    public static function flushTags($hero_id) {
        \Cache::tags(self::getTagKey($hero_id))->flush();
    }
}
